﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SuperSocket.SocketBase.Command;
using SuperSocket.SocketBase;
using SuperSocket.SocketBase.Protocol;

namespace UFrameWork
{
    public class JsonMsgCmd : CommandBase<USession, StringRequestInfo>
    {
        public override void ExecuteCommand(USession session, StringRequestInfo requestInfo)
        {
            if (session.Beat.IsBeatMsg(requestInfo.Body)) return;
            UDispatcher.Do(session,requestInfo.Body);
        }
    }
}